// 微信支付
function wxPay(data, params) {
	wx.requestPayment({
		timeStamp: data.timeStamp,
		nonceStr: data.nonceStr,
		package: data._package,
		signType: data.signType,
		paySign: data.paySign,
		success: function(res) {
			uni.redirectTo({
				url: `/pages/paySuccess/paySuccess?params=${JSON.stringify(params)}`
				// url: url
			})
		},
		fail: function(res) {
			// console.log(res,'2')
		},
		complete: function(res) {
			that.removeStorage()
			console.log(res, '3');
		}
	});
}
const orderTablist = [{
		name: '全部',
		id: '-1'
	},
	{
		name: '待付款',
		id: '0'
	},
	{
		name: '进行中',
		id: '1'
	},
	{
		name: '已完成',
		id: '2'
	},
	{
		name: '已取消',
		id: '3'
	}
]
const serviceTablist = [{
			name: '全部',
			id: '-1'
		},
		{
			name: '待付款',
			id: '0'
		},
		{
			name: '生效中',
			id: '1'
		},
	]
	module.exports = {
		wxPay,
		serviceTablist,
		orderTablist,
	}